package com.soxing.braindata.web.controller;

import com.soxing.braindata.domain.vo.EegVo;
import com.soxing.braindata.service.docker.IEEGViewService;
import com.soxing.common.utils.response.WebResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/eegview")
public class EegViewController {

    @Resource
    IEEGViewService ieegViewService;




    ///home/webrain/Desktop/share/file/sub01_open_prepro_prepro.zip 文件中传入的是linux下的文件路径
    @GetMapping("eegshow1")
    public WebResponse<EegVo> view(@RequestParam(value = "star", required = false) Integer star,
                                   @RequestParam(value = "end", required = false) Integer end,
                                   @RequestParam(value = "path", required = false) String path){
        return ieegViewService.view(path,star,end);
    }


}
